<div>
  动态组件
  <button (click)="dyToggle()">动态显示组件</button>

  <app-dynamic2 *ngIf="isShow"></app-dynamic2>
  <app-dynamic3 *ngIf="!isShow"></app-dynamic3>

  <button (click)="componentToggle()">动态组件</button>

  <div #dyroom></div>


</div>
